package com.tcd.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 理算详情表
 * </p>
 *
 * @author space
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ClaimsDetail对象", description="理算详情表")
public class ClaimsDetail implements Serializable {

    @ApiModelProperty(value = "理算详情Id")
      @TableId(value = "claims_detail_id", type = IdType.AUTO)
    private Integer claimsDetailId;

    @ApiModelProperty(value = "理算Id")
    private Integer claimsId;

    @ApiModelProperty(value = "项目类型")
    private String itemType;

    @ApiModelProperty(value = "损失项目名称")
    private String lossName;

    @ApiModelProperty(value = "损失物金额")
    private BigDecimal lossTotal;

    @ApiModelProperty(value = "投保比例")
    private BigDecimal insurancePercentage;

    @ApiModelProperty(value = "施救费用")
    private BigDecimal sueCharges;

    @ApiModelProperty(value = "赔偿限额")
    private BigDecimal indemnityLimit;

    @ApiModelProperty(value = "绝对免赔额")
    private BigDecimal deductibleAverage;

    @ApiModelProperty(value = "绝对免赔率")
    private String absolutelyFranchise;

    @ApiModelProperty(value = "实际赔付（实际赔付总金额=绝对免赔额*绝对免赔率-施救费  不得超过赔偿限额）")
    private BigDecimal actualPay;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "所属理赔")
    @TableField(exist = false)
    private Claims parent;


}
